//
//  RootViewController.m
//  NEWS
//
//  Created by lanou on 16/4/6.
//  Copyright © 2016年 孙金龙. All rights reserved.
//

#import "RootViewController.h"
#import "NewsViewController.h"
#import "JOKEViewController.h"
@interface RootViewController ()
@property(nonatomic,strong)NewsViewController *news;
@property(nonatomic,strong)JOKEViewController *joke;
@end

@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    _joke = [[JOKEViewController alloc] init];
    [self.view addSubview:_joke.view];
    
    
//     _news = [[NewsViewController alloc] initWithNibName:@"NewsVc" bundle:nil];
//    [self.navigationController pushViewController:_news animated:YES];
//      _news.newsNav = self.navigationController;
//     [self.view addSubview:_news.view];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
